package com.study.one.propertise;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * @author wu
 */
@Data
@ConfigurationProperties("one")
@Component
public class OneSettingsProperties {

    public  PulsarProperties pulsar;

    @Data
    public static class PulsarProperties {

        private String serviceUrl;

        private String port;

        private String token;

        private String enable;

        // io 线程数
        private Integer numIoThreads = 20;

        // 消费线程数
        private Integer numListenerThreads = 20;

        private ProducerTopicProperties producerTopic;

        private ConsumerProperties consumer;

    }




}
